package com.fl.iocaop.domain;

import com.fl.iocaop.domain.Dept;
import com.fl.iocaop.factory.UserFactory;
import org.springframework.beans.factory.FactoryBean;

public class factoryBean implements FactoryBean<Dept> {
    @Override
    public Dept getObject() throws Exception {
        Dept dept = UserFactory.TestBean1();
//        Dept dept1 = new Dept();
//        dept1.setDeptId("101");
//        dept1.setDeptName("王附件");
        return dept;
    }

    @Override
    public Class<?> getObjectType() {
        return null;
    }

    @Override
    public boolean isSingleton() {
        return FactoryBean.super.isSingleton();
    }
}
